原创 ubuntu下安裝虛擬機VM

安裝步驟如下: 1 用apt-get命令更新系統 linuxidc@localhost:~sudoapt−getupdatelinuxidc@localhost:  sudo apt-get upgrade 2 從官方網站下載W

原创 bootstrap基本css樣式1 排版知識

1.排版 1.行高h1-h6 2.body默認設置 font-size:14px,line-height:20px; p默認10px 3.段落突出lead <p class="lead">...</p> 4.排版尺寸定義 @b

原创 bootstrap基本css-代碼與表格,表單

1.內聯代碼code For example, <code>&lt;section&gt;</code> should be wrapped as inline. 2.標記用戶輸入kbd To switch directorie

原创 js生成彈窗樣式

<li id="XGJG" onClick="openLayer();"> <a href="javascript:void(0);" >修改價格</a>

原创 ubuntu下導入mysql數據庫

ubuntu下導入、導出mysql數據庫命令 一、導出數據庫用mysqldump命令(注意mysql的安裝路徑,即此命令的路徑): 1、導出數據和表結構: mysqldump -u用戶名 -p密碼 數據庫名 > 數據庫名.sq

原创 10.31編程總結

1.django手動創建數據庫 DROP TABLE IF EXISTS `wish_account`; /*!40101 SET @saved_cs_client = @@character_set_client */;

原创 11.1編程總結

1.數據庫的知識 限制查詢條數 select * from table wish_store_listings limit 2 查看錶結構 show create table wish_store_listings 時間抓取後的處

原创 bootstrap基本css樣式按鈕

1.樣式預定義 <!-- Standard button --> <button type="button" class="btn btn-default">Default</button> <!-- Provides extr

原创 python網頁基礎知識

{% block content %} 如果你在當前模版頁中定義了{% block content %}{% endblock %},那麼它會覆蓋掉父模版的content塊的內容。 {% extends “supplier_b

原创 10.23知識點補漏

1.python使用本地數據庫時候的配置如下所示 DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', # Add 'postgr

原创 Django框架學習-Model篇

首先安裝MySQL的python連接驅動,windows下安裝可下下載,對應python-2.7: https://code.google.com/p/soemin/downloads/detail?name=MySQL-pyt

原创 11.2編程總結

1.如何讓多個div排列在一行當中input <input type="text" value="" style="width:25%;"> <input type="text" class="form-control" plac

原创 checkbox全選

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> </styl

原创 bootstrap基本的CSS樣式 圖片 響應式工具

1.響應式圖片 <img src="..." class="img-responsive" alt="Responsive image"> 2.圖片形狀 <img src="..." alt="..." class="img-r

原创 11.5編程總結

1.文本自動轉換大小寫 向文本框輸入文字時,如何讓小寫字母自動變爲大寫呢?有一個簡單有效的做法是用CSS。 <input name="t1" type="text" style="text-transform:uppercase;