word-wrap: break-word;
word-break: break-all;說明:
1. word-wrap: 超過寬度時是否要換行
2. word-break: 斷字的方法
以上語法適用於div、td、body、p...等
Call OpenURL()
Sub OpenURL()
'Force the script to finish on an error.
On Error Resume Next
'Declare variables
Dim objRequest
Dim URL
Set objRequest = CreateObject("Microsoft.XMLHTTP")
'Put together the URL link appending the Variables.
URL = "http://url?par1=value"
'Open the HTTP request and pass the URL to the objRequest object
objRequest.open "POST", URL , false
'Send the HTML Request
objRequest.Send
'Set the object to nothing
Set objRequest = Nothing
End Sub
<script language="javascript">
var submitted = false;
</script>
...
<form onsubmit="if (!submitted) {submitted = true; return true;} else return false;">--1 Enabling full text on the database
EXEC sp_fulltext_database 'enable'
--2 Create the Catalog (if does not exist)
EXEC sp_fulltext_catalog 'MyCatalog','create'
--3 add a full text index on a Table
EXEC sp_fulltext_table 'Products', 'create', 'MyCatalog', 'pk_products'
EXEC sp_fulltext_table 'Categories', 'create', 'MyCatalog', 'pk_categories'
--4 add a column to the full text Index
EXEC sp_fulltext_column 'Products', 'ProductName', 'add'
EXEC sp_fulltext_column 'Categories', 'Description', 'add'
--5 activate the index
EXEC sp_fulltext_table 'Products','activate'
EXEC sp_fulltext_table 'Categories','activate'
--6 start full population
EXEC sp_fulltext_catalog 'MyCatalog', 'start_full'
-- usage in T-SQL (CONTAINS and FREETEXT predicates)
-- Using the index in T-SQL
USE Northwind
GO
SELECT ProductId, ProductName, UnitPriceFROM Products
WHERE CONTAINS( ProductName, ' "sasquatch " OR "stout" ' )
GO
USE Northwind
GO
SELECT CategoryNameFROM Categories
FREETEXT (Description, 'sweetest candy bread and dry meat' )
GO