<TextView
android:id="@+id/txt_all"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/txt"
android:autoLink="all"
android:layout_below="@+id/txt"
android:text="http://tw.yahoo.com" />
stockwfj3 發表在 痞客邦 留言(0) 人氣(76)
<style>
.divleft {
background-size:cover;
width:50%;
height:calc(100vw * 270.0 / 1280.0);
max-height:270px;
max-width:1280px;
margin:0;
padding:0;
float:left;
background-color:#FFFF00;
}
.divright {
background-size:cover;
width:50%;
height:calc(100vw * 270.0 / 1280.0);
max-height:270px;
max-width:1280px;
margin:0;
padding:0;
float:right;
background-color:#FF0000;
}
stockwfj3 發表在 痞客邦 留言(0) 人氣(1,763)
<style>
.another{
cursor: url(圖片路徑), default !important;
}
</style>
<a href="#" class="another">測試游標</a>
stockwfj3 發表在 痞客邦 留言(0) 人氣(21)
<?php
$zip = new ZipArchive;
$res = $zip->open('test_with_comment.zip');
if ($res === TRUE) {
var_dump($zip->getArchiveComment());
/* Or using the archive property */
var_dump($zip->comment);
} else {
echo 'failed, code:' . $res;
}
?>
stockwfj3 發表在 痞客邦 留言(0) 人氣(5)
例:解壓縮全部檔案至一目錄
<?php
$zip = new ZipArchive;
if ($zip->open('/raid/vhost/treetech.tw/www/test/test.zip') === TRUE) {
$zip->extractTo('/raid/vhost/treetech.tw/www/test/');
$zip->close();
echo 'ok';
} else {
echo 'failed';
}
?>
stockwfj3 發表在 痞客邦 留言(0) 人氣(822)
例1:使用名稱從歸檔中刪除文件和目錄
<?php
$zip = new ZipArchive;
if ($zip->open('test1.zip') === TRUE) {
$zip->deleteName('testfromfile.php');
$zip->deleteName('testDir/');
$zip->close();
echo 'ok';
} else {
echo 'failed';
}
?>
stockwfj3 發表在 痞客邦 留言(0) 人氣(7)
例1 使用其索引從歸檔中刪除文件
<?php
$zip = new ZipArchive;
if ($zip->open('test.zip') === TRUE) {
$zip->deleteIndex(2);
$zip->close();
echo 'ok';
} else {
echo 'failed';
}
?>
stockwfj3 發表在 痞客邦 留言(0) 人氣(9)
<?php
$zip = new ZipArchive();
$ret = $zip->open('application.zip', ZipArchive::OVERWRITE);
if ($ret !== TRUE) {
printf('Failed with code %d', $ret);
} else {
$directory = realpath('.');
$options = array('add_path' => 'sources/', 'remove_path' => $directory);
$zip->addPattern('/\.(?:php|txt)$/', $directory, $options);
$zip->close();
}
?>
stockwfj3 發表在 痞客邦 留言(0) 人氣(29)
private String[] setdata(int length, String dataname) {
String[] array = new String[length];
for (int i = 0; i < length; i++) {
array[i] = dataname + ":" + i;
}
return array;
}
stockwfj3 發表在 痞客邦 留言(0) 人氣(52)
<style>
a {
text-decoration: none;
position: relative;
color: #3366FF;
}
stockwfj3 發表在 痞客邦 留言(1) 人氣(1,876)